using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Player_Buff : MonoBehaviour
{
    public GameObject huhunlei_Eff;
    public bool HuHunLei_ison;
    private float huhunlei_CD;
    public int Huhunlei_Level;

    public bool ChuanYunJian_ison;

    public float JinGangWan_Level;

    public bool SuiYuJue_ison;
    public int SuiYuJue_Level;

    public bool HuiYinBiao_ison;
    public int HuiYinBiao_Level;

    public bool QianLiYan_ison;
    public int QianLiYan_Level;

    public bool ShiHunFan_ison;
    public int ShiHunFan_Level;

    public bool HongLianHuo_ison;
    public int HongLianHuo_Level;

    public bool BingFengPo_ison;
    public int BingFengPo_Level;

    // Start is called before the first frame update
    void Start()
    {
        HuHunLei_ison = false;
        huhunlei_CD = 2;
        Huhunlei_Level = 0;
        ChuanYunJian_ison = false;
        JinGangWan_Level = 0;
        SuiYuJue_ison = false;
        SuiYuJue_Level = 0;
        HuiYinBiao_ison = false;
        HuiYinBiao_Level = 0;
        QianLiYan_ison = false;
        QianLiYan_Level = 0;
        ShiHunFan_ison = false;
        ShiHunFan_Level = 0;
        HongLianHuo_ison = false;
        HongLianHuo_Level = 0;
        BingFengPo_ison = false;
        BingFengPo_Level = 0;
    }

    // Update is called once per frame
    void Update()
    {
        HuHunLei();
    }

    public void HuHunLei()
    {
        if(HuHunLei_ison==true)
        {
            huhunlei_CD -= Time.deltaTime;
            if(huhunlei_CD <= 0)
            {
                GameObject F = Instantiate(huhunlei_Eff);   
                F.transform.position = transform.position;
                huhunlei_CD = 2;
            }
        }
    }
    
}
